/*** 基础Table样式 */
.ant-table-wrapper.antd-cover__Table {
  --border_radius: 8px;
  .ant-table-thead {
    --uno: 'mb-10px ';
    .ant-table-cell {
      --uno: 'text-sys-text-body text-sm border-unset bg-sys-layer-d ';
      &:before {
        display: none;
      }
      &:nth-child(1) {
        border-top-left-radius: var(--border_radius);
        border-bottom-left-radius: var(--border_radius);
      }
      &:last-child {
        border-top-right-radius: var(--border_radius);
        border-bottom-right-radius: var(--border_radius);
        --uno: 'flex justify-end';
      }
    }
  }
  .ant-table-tbody {
    .ant-table-cell {
      &:last-child {
        --uno: 'text-right';
      }
      &.ant-table-cell-row-hover:nth-child(1) {
        border-top-left-radius: var(--border_radius);
        border-bottom-left-radius: var(--border_radius);
      }
      &.ant-table-cell-row-hover:last-child {
        border-top-right-radius: var(--border_radius);
        border-bottom-right-radius: var(--border_radius);
      }
      &.ant-table-cell-row-hover {
        background: theme('colors.sys.layer.d');
      }
    }
  }
  .ant-table-empty {
    display: none;
  }
}

/*** 隐藏hover样式 */
.ant-table-wrapper.antd-cover__Table-hideen-hover {
  .ant-table-tbody {
    .ant-table-cell {
      &.ant-table-cell-row-hover {
        background: unset;
      }
    }
  }
}

/*** 隐藏操作列的title内容 */
.ant-table-wrapper.antd-cover__Table-hideen-endtitle {
  .ant-table-thead {
    .ant-table-cell:last-child {
      color: transparent;
    }
  }
}

/*** 基础展开子table样式 父控制子列 */
.ant-table-wrapper.antd-cover__Table.antd-cover__Table-expanded {
  .ant-table-tbody {
    .ant-table-expanded-row-level-1 > .ant-table-cell {
      padding-left: 0;
      background: unset;
    }
    .ant-table-expanded-row-level-1 > .ant-table-cell:last-child {
      text-align: right;
    }
  }
}

/*** 基础展开子table样式 子自己控制自己 */
.ant-table-wrapper.antd-cover__Table-children.antd-cover__Table-children.antd-cover__Table-children {
  .ant-spin-container {
    .ant-table {
      margin-left: 0px;
      .ant-table-cell {
        background: theme('colors.sys.layer.d');
      }
      .ant-table-tbody {
        tr:nth-child(1) {
          .ant-table-cell {
            &:nth-child(1) {
              border-top-left-radius: var(--border_radius);
            }
            &:last-child {
              border-top-right-radius: var(--border_radius);
            }
          }
        }
        tr:last-child {
          .ant-table-cell {
            &:nth-child(1) {
              border-bottom-left-radius: var(--border_radius);
            }
            &:last-child {
              border-bottom-right-radius: var(--border_radius);
            }
          }
        }
      }
    }
  }
}
